<?php
Route::group(['prefix' => 'api'], function () {
    Route::get('/', ['as' => 'api.index', 'uses' => 'IndexController@index']);
    Route::any('/vue/{all}', ['as' => 'api.vue.index', 'uses' => 'IndexController@vue'])->where(['all'=>'.*']);
//    Route::get('/{id}', ['as' => 'api.show', 'uses' => 'IndexController@show']);
});

Route::get('/posts', ['as' => 'api.post', 'uses' => 'PostController@index']);
Route::get('/posts/{id}', ['as' => 'api.post.show', 'uses' => 'PostController@show']);




